<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;


class DivinationCategoriesRelation extends Model
{
    use HasFactory;

     protected $table = 'divination_categories_relation';// 定义模型对应的表名
    protected $guarded = ['id'];

     public function category()
    {
        return $this->belongsTo(Category::class, 'category_id', 'id');
    }
    
}
